package com.turtle.service;

import com.turtle.dto.BlogInfoDto;
import com.turtle.dto.BlogParam;
import com.turtle.dto.PageEntity;
import com.turtle.entity.sql.Blog;

import java.util.Map;

/**
 * @author lijiayu
 * @date 2020/7/20
 * @description
 */
public interface BlogService {

    void add(BlogParam param,Long userId);

    void update(BlogParam param,Long userId);

    void delete(Long id,Long userId);

    PageEntity<Blog> getPage();

    BlogInfoDto getInfoById(Long id,Long userId);

    Map<Long,Long> getCountMapByUserId(Long userId);
}
